
<?php

if ($_REQUEST['lang'] == "de") {

    $expire = time() + 3600*25;
    setcookie("lang", "de", $expire,"/");

  header("Location: //localhost:8888/Rilke/");

} 
else
if ($_REQUEST['lang'] == "fr") {

    $expire = time() + 3600*25;
    setcookie("lang", "fr", $expire,"/");

 header("Location: //localhost:8888/Rilke/");
}

?>



<!DOCTYPE html> 
<html>
    <head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<title>Language</title> 
	<!Librairie JQuery mobible>
        <!--<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />-->
           <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
    
    
        <script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
    
         <script src="http://code.jquery.com/jquery-latest.js"></script>
    </head>
    <body> 

    <div data-role="page">

                    <div data-role="header" data-theme="d">
                        <h1>&nbsp</h1>
                    </div>

                    <div data-role="content" data-theme="c">
                            <h1>Language</h1>
                            <p>Choisissez votre language</p>
     
                          
<a  onclick="javascript:window.location='http://localhost:8888/Rilke/Include/dialogLanguage.php?lang=de';" data-role="button" data-theme="c">Deutsch</a>   


<a onclick="javascript:window.location='http://localhost:8888/Rilke/Include/dialogLanguage.php?lang=fr';" data-role="button" data-theme="c">Français</a>  
                    </div>
            </div>
        
        <script  LANGUAGE="JavaScript" >
            function updateLanguage(){
                
            }
        </script>
    </body>
</html> 
